html, body {
    height: 100%;
}

body {
    margin: 0;
}

.search {
    height: 45px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: row;
}

.empty {
    height: 100%;
    width: 80px;
}

.to {
    height: 100%;
    flex-grow: 1;
    display: inline-block;
    text-align: center;
}

.search-logo {
    height: 100%;
    width: 80px;
    background: url("icons/search3.png") no-repeat center center;
    background-size: 25% auto;
}

.to > span {
    display: inline-block;
    vertical-align: middle;
    height: 45px;
    line-height: 45px;
}

.to > span:nth-child(2) {
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.to > .arrow {
    width: 12px;
    background: url("icons/triangle.png") no-repeat center center/contain;
}
/*商品列表样式*/
.product {
    flex-grow: 1;
    /*background: pink;*/
}
.product > .header {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #eee;
}
.product > .header > div{
    text-align: center;
    width: 50%;
    font-size: 12px;
    padding-top: 11px;
    padding-bottom: 11px;
}
.product > .header > div:nth-child(2) {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.product > .header .sort > i {
    display: block;
    width: 16px;
    height: 8px;
}

.product > .header .sort > i:first-child {
    background: url("icons/sort1.png") no-repeat top left;
    background-size: 16px 16px;
}

.product > .header .sort > i:last-child {
    background: url("icons/sort1.png") no-repeat 0 -8px;
    background-size: 16px 16px;
}
.good-list{
    height: calc(100% - 45px);
    overflow-y: scroll;
}
.good-list > ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.good-list > li {
    height: 80px;
}
.good-list > ul >li{
    display: flex;
    flex-direction: row;
    border-bottom: solid 1px #eee;
}
.good-list > ul >li .desc{
    flex-grow: 1;
    box-sizing: border-box;
    padding-left: 6px;
}
.good-list > ul >li .desc>.title{
    padding-top: 12px;
    font-size: 14px;
    margin-bottom: 15px;
}
.good-list > ul >li >.pic {
    width: 80px;
    height: 100px;
    background-size: 60px 60px;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("icons/001.jpg");

}
.good-list > ul >li .desc>.pac >.price {
     float: left;
     color: #ff9201;
     font-size: 14px;

 }
.good-list > ul >li .desc>.pac >.price::before{
    content: "￥";
}
.good-list > ul >li .desc>.pac >.count {
    float: right;
    padding-right: 5px;
}
.good-list > ul >li .desc>.pac::after{
    display: block;
    clear: both;
    content: "";
    width: 0;
}
.good-list > ul >li .desc>.pac >.count i{
    display: inline-block;
    font-style: normal;
    font-size: 12px;
    vertical-align: middle;
}
.good-list > ul >li .desc>.pac >.count i:first-child{
    width: 20px;
    height: 20px;
    background: url("icons/add.png") no-repeat center center/cover;
}
.good-list > ul >li .desc>.pac >.count i:last-child{
    width: 20px;
    height: 20px;
    background: url("icons/subtract.png") no-repeat center center/cover;
}
/*底部*/
.nav {
    height: 50px;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
}

.nav > div {
    height: 100%;
    width: 50%;
    font-size: 14px;
}

.nav .ico {
    width: 20px;
    height: 20px;
    margin: 5px auto 0;
}

.index > .ico {
    background: url("icons/home2.png") no-repeat center center/contain;
}

.category > .ico {
    background: url("icons/search2.png") no-repeat center center/contain;
}

.cart > .ico {
    background: url("icons/shop-cart1.png") no-repeat center center/contain;
}

.my > .ico {
    background: url("icons/people1.png") no-repeat center center/contain;
}

.nav .text {
    text-align: center;
    margin-top: 2px;
}

.nav .active > .text {
    color: #FF9201;
}

.list {
    display: flex;
    flex-direction: row;
    height: calc(100% - 97px);
}

.list > div {
    height: 100%;
}

.list > .category-list {
    width: 120px;
    border-right: 1px solid #eee;
    font-size: 14px;
}

.category-list > ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.category-list > ul > li {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-top: 10px;
    padding-bottom: 10px;
}
.category-list > ul > li.active {
    border-left: 4px solid #ff9201;
}